package com.awesome.webviewdemo;

import java.util.Arrays;
import java.util.List;

/**
 * Author: zhangjingfang
 * Email:zhangjingfang@jeejio.com
 * Date: 2022/7/13
 * Description:类描述
 */
public class Person {
    private String name;
    private int age;
    private List<Account> accounts;
    private String[] remarks;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public List<Account> getAccounts() {
        return accounts;
    }

    public void setAccounts(List<Account> accounts) {
        this.accounts = accounts;
    }

    public String[] getRemarks() {
        return remarks;
    }

    public void setRemarks(String[] remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", accounts=" + accounts +
                ", remarks=" + Arrays.toString(remarks) +
                '}';
    }

    public static class Account{
        private String bank;
        private int balance;

        public Account(String bank, int balance) {
            this.bank = bank;
            this.balance = balance;
        }

        public String getBank() {
            return bank;
        }

        public void setBank(String bank) {
            this.bank = bank;
        }

        public int getBalance() {
            return balance;
        }

        public void setBalance(int balance) {
            this.balance = balance;
        }

        @Override
        public String toString() {
            return "Account{" +
                    "bank='" + bank + '\'' +
                    ", balance=" + balance +
                    '}';
        }
    }
}
